package com.rerun.common.rabbitmq;

/**
 * The enum Exchange type enum.
 *
 * @author dax.
 * @version v1.0
 * @since 2017 /11/17 13:49
 */
public enum ExchangeTypeEnum {

    /**
     * Fanout exchange type enum.
     */
    FANOUT("FANOUT", "单一广播"),

    /**
     * Direct exchange type enum.
     */
    DIRECT("DIRECT", "直接路由"),
    /**
     * Header exchange type enum.
     */
    HEADER("HEADER", "头路由"),

    /**
     * Topic exchange type enum.
     */
    TOPIC("TOPIC", "多重广播");

    private String key;
    private String description;

    ExchangeTypeEnum(String key, String description) {
        this.key = key;
        this.description = description;
    }

    /**
     * Gets key.
     *
     * @return the key
     */
    public String getKey() {
        return key;
    }

    /**
     * Sets key.
     *
     * @param key the key
     */
    public void setKey(String key) {
        this.key = key;
    }

    /**
     * Gets description.
     *
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * Sets description.
     *
     * @param description the description
     */
    public void setDescription(String description) {
        this.description = description;
    }
}
